<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
<!--    <h1>你好</h1>

    <div th:text="${u}">sdasds</div>-->
    <table border="1" width="500px">
        <tr th:each="items : ${it}">
            <td th:text="${items.id}"></td>
            <td th:text="${items.itemName}"></td>
            <td th:if="${items.isMarketable eq 1}">上架</td>
            <td th:if="${items.isMarketable eq 0}">下架</td>
           <!-- <td th:text="${items.isMarketable}"></td>-->
            <td th:each="type:${type}" th:text="${type.typeName}" th:if="${items.itemType eq type.id}"></td>
        <!--    <td th:text="${items.itemType}"></td>-->
        </tr>
    </table>
</body>
</html>
